import com.kuang.pojo.Persion;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTset {
    @Test
    public  void  test1(){
        ApplicationContext context = new ClassPathXmlApplicationContext("beans.xml");

        Persion persion = context.getBean("persion", Persion.class);
        persion.getCat().shout();
        persion.getDog().shout();

    }
}
